(when (member "Iosevka Term" (font-family-list))
  (set-frame-font "Iosevka Term 14" t t))

(setq inhibit-splash-screen t)

(show-paren-mode t)

(electric-pair-mode    1)
(electric-indent-mode -1)

(delete-selection-mode t)

(tooltip-mode      -1)
(menu-bar-mode     -1)
(tool-bar-mode     -1)
(scroll-bar-mode   -1)
(blink-cursor-mode -1)
(setq use-dialog-box     nil)
(setq redisplay-dont-pause t)
(setq ring-bell-function 'ignore)

(setq make-backup-files        nil)
(setq auto-save-default        nil)

(setq x-select-enable-clipboard t)

(with-eval-after-load 'package (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t)
                               (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t))

(use-package auto-package-update
  :ensure t
  :config
  (setq auto-package-update-delete-old-versions t)
  (setq auto-package-update-hide-results t)
  (auto-package-update-maybe))

(use-package haskell-mode
  :ensure t)

(use-package elixir-mode
  :ensure t)

(use-package pkg-info
  :ensure t)

(use-package org-bullets
  :ensure t
  :config
  (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))

(use-package nano-modeline
  :ensure t
  :config (nano-modeline-mode))

(use-package nano-theme
  :ensure t
  :config (nano-light))

